#ifndef _TELAlign
#define _TELAlign

#include<iostream.h>
#include<stdio.h>
#include<string.h>
#include<vector.h>

#include<TROOT.h>
#include<TFile.h>
#include<TTree.h>
#include<TMath.h>
#include<TMinuit.h>

#include<Global.h>

static vector<Double_t>* VecX[2];
static vector<Double_t>* VecY[2];

void fcn(Int_t &, Double_t*, Double_t &, Double_t*, Int_t);
Double_t TransX(Double_t, Double_t, Double_t*);
Double_t TransY(Double_t, Double_t, Double_t*);

class TELAlign{
  
  Global* glob;

 public:
  
  TELAlign(vector<Double_t>*, vector<Double_t>*, vector<Double_t>*, vector<Double_t>*);
  void Align(Double_t[]);
  ~TELAlign();
  
};

#endif
